package cc.telecomdigital.tdstock.utils;

public class WorldFutures implements BMPEntityBase
{
	/*
	 * 日經指數本月期貨，日經指數下月期貨，道瓊斯本月期貨
	 */
	static final public String[]	TypeName			= { "SSI:1", "SSI:2", "DJI:1" };
	
	static final public String		TypeName_Str_Tab0	= "SSI:1,SSI:2,DJI:1";
	static final public String		TypeName_Str_Tab3	= "SSI:1,SSI:2";
	static final public String		TypeName_Str_Tab4	= "DJI:1";

	static final public String		Name				= "Name";

	static final public String		MM					= "MM";
	static final public String		Last				= "Last";
	static final public String		Net					= "Net";
	static final public String		High				= "High";
	static final public String		Low					= "Low";
	static final public String		Open				= "Open";

	static final public String[]	FIELD_ITEMS			= { Name, MM, Last, Net, High, Low, Open };

	static final public String[]	FIELD_ITEMS_MONITOR	= { Name, MM, Last, Net };

	private String					name;
	private String					mm;
	private String					last;
	private String					net;
	private String					high;
	private String					low;
	private String					open;

	@Override
	public void SetValueByFIELDS_MONITOR(int i, String value)
	{
		switch (i)
		{
			case 0:
				setName(value);
				break;
			case 1:
				setMm(value);
				break;
			case 2:
				setLast(value);
				break;
			case 3:
				setNet(value);
				break;
		}
	}
	
	@Override
	public void SetValueByFIELDS(int i, String value)
	{
		switch (i)
		{
			case 0:
				setName(value);
				break;
			case 1:
				setMm(value);
				break;
			case 2:
				setLast(value);
				break;
			case 3:
				setNet(value);
				break;
			case 4:
				setHigh(value);
				break;
			case 5:
				setLow(value);
				break;
			case 6:
				setOpen(value);
				break;
		}
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getMm()
	{
		return mm;
	}

	public void setMm(String mm)
	{
		this.mm = mm;
	}

	public String getLast()
	{
		return last;
	}

	public void setLast(String last)
	{
		this.last = last;
	}

	public String getNet()
	{
		return net;
	}

	public void setNet(String net)
	{
		this.net = net;
	}

	public String getHigh()
	{
		return high;
	}

	public void setHigh(String high)
	{
		this.high = high;
	}

	public String getLow()
	{
		return low;
	}

	public void setLow(String low)
	{
		this.low = low;
	}

	public String getOpen()
	{
		return open;
	}

	public void setOpen(String open)
	{
		this.open = open;
	}

	@Override
	public void SetValueByFIELDS_COP(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_NET(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_STOCK(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_TURNOVER(int index, String value)
	{
	}

	@Override
	public String GetKey()
	{
		return name;
	}

	@Override
	public void SetKeyValue(String value)
	{
		name = value;
	}
}
